from tkinter import *

root = Tk()
root.title('title')
w = Label(root, text='Hello, Tkinter')
w.pack()
root.mainloop()

'''
from tkinter import *

class Application(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pack()
        self.initWidgets()
        
    def initWidgets(self):
        w = Label(self)
        bm = PhotoImage(file='tmp.png')
        w.x = bm
        w['image'] = bm
        w.pack()
        okButton = Button(self, text='OK')
        okButton['background'] = 'yellow'
        okButton.pack()

app = Application()
print(type(app.master))
app.master.title('title')
app.mainloop()
'''

